Quoting Benno Fünfstück (2014-01-13 13:34:51)
> In pkgs/development/libraries/gupnp-av/default.nix:
> 
> > @@ -0,0 +1,20 @@
> > +{ stdenv, fetchurl, gupnp, pkgconfig }:
> > +
> > +stdenv.mkDerivation {
> > +  name = "gupnp-av-0.12.4";
> 
> Is it also possible to generate the 0.12 part in the url?
> 

you could do

```
majorVersion = "0.12";
version = "${majorVersion}.4};
src = {
    url = "....${majorVersion}/gupnp-av-${version}";
...
```

at least thats how other did it in their distributions.

--
Rok Garbas - http://www.garbas.si